package com.mpyy.handler.purchase;

import com.mpyy.pojo.ProductInfo;
import com.mpyy.service.purchase.UpdateProductInfoSreviceInter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @version 1.0
 * @Descoription UpdateProductInfoHandler
 * @Author CG
 * @date 2022-03-25
 */
@Controller
public class UpdateProductInfoHandler {
    @Autowired
    private UpdateProductInfoSreviceInter productInfoSreviceInter;
    @RequestMapping(value = "updateProductInfo")
    @ResponseBody
    public String updateProductInfo(ProductInfo productInfo){

        return String.valueOf(productInfoSreviceInter.updateProductInfo(productInfo));
    }
}
